package com.myboot.config;

import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.context.annotation.Configuration;

/**
 * Created by liuhuan on 2017/1/11.
 */
@Configuration
//@Order(value=2) 多个启动类时，order由小到大决定执行顺序
public class ContextInitConfigure implements ApplicationRunner {
    @Override
    public void run(ApplicationArguments applicationArguments) throws Exception {
        System.out.println("===============在服务启动时执行");
    }
}
